package master.photo.controller.security

/**
 * Logout Controller (Example).
 */
class LogoutController {
	
	/**
	 * Index action. Redirects to the Spring security logout uri.
	 */
	def index = {
		session['J_USERNAME'] = null;
		session.invalidate();
		redirect(uri: '/login')
	}
}
